Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Class Version

The kQ3XMethodTypeObjectClassVersion method lets you publish the version number of a custom class.

Q3XMethodTypeObjectClassVersion

The kQ3XMethodTypeObjectClassVersion method returns the version of a class as a TQ3XObjectClassVersion type. This information may be used to determine when to invoke the TQ3XObjectClassReplaceMethod method.

#define kQ3XMethodTypeObjectClassVersion Q3_METHOD_TYPE('v','r','s','n')
typedef unsigned long       TQ3XObjectClassVersion;
TQ3XObjectClassVersion
Version of a class.

DESCRIPTION

QuickDraw 3D includes a utility macro that lets you provide the version number of a class. If there are two identical implementations of a class, the system will only load the latter, as determined by the version number.

#define Q3_OBJECT_CLASS_VERSION(major, minor)
                            (unsigned long) (((major) << 16) | (minor))

If you do not provide a version number the version is automatically set to 0.0.

SEE ALSO

"Q3XObjectHierarchy_GetClassVersion"


© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |